package service

import (
	"context"
	"github.com/aphasia51/website/internal/domain"
	"github.com/aphasia51/website/internal/repository"
)

type ConsumablesService struct {
	repo *repository.ConsumablesRepository
}

func NewConsumablesService(repo *repository.ConsumablesRepository) *ConsumablesService {
	return &ConsumablesService{
		repo: repo,
	}
}

func (svc *ConsumablesService) Query(ctx context.Context, a domain.Consumable) ([]domain.Consumable, error) {
	return svc.repo.Query(ctx, a)
}

func (svc *ConsumablesService) Select(ctx context.Context) ([]domain.Consumable, error) {
	return svc.repo.Select(ctx)
}
